<?php

namespace App\Model\Baiyou;

use App\Model\BaseModel;
use EasySwoole\EasySwoole\Config;
use EasySwoole\ORM\Utility\Schema\Table;


/**
 * This is the model class for table "{{%base_project}}".
 *
 * @property int $id
 * @property string $name 项目名称
 * @property string $name_sx 项目缩写
 * @property int $project_num 项目人数
 * @property int $status 状态【-1删除、0禁用、1正常】
 * @property int $sort 排序
 * @property int $created_at 添加时间
 * @property int $updated_at 更新时间
 */
class BaseProject extends BaseModel
{
    const STATUS_DELETE = -1;// 删除
    const STATUS_INVALID = 0;// 失效
    const STATUS_ENABLE = 1;// 正常

    // 指定连接名称
//    protected $connectionName = 'dengta';

    public function __construct(array $data = [])
    {
        $tablePrefix = Config::getInstance()->getConf("MYSQL.tablePrefix");
        $name = $tablePrefix . "base_project";
        $this->tableName($name);

        parent::__construct($data);
    }
}
